package com.tul.exercise.base.clazz.base.eg2;

import static com.tul.exercise.base.utils.Print.*;

/**
 * @author tul
 * 《java编程思想》 14章 示例2:类的加载过程
 *
 */
public class classLoadTest {
    public static void main(String[] args) {
        print("inside main");

        new Candy();
        print("After creating Candy");

        try {
            Class.forName("Gum");
        } catch (ClassNotFoundException e) {
            print("Couldn't find Gum");
        }

        print("After Class.forName(\"Gum\")");

        new Cookie();
        print("After creating Cookie");
    }
}
